﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Css/login.css" rel="stylesheet" type="text/css" />
    <title>网络硬盘</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <img src="Image/top.jpg" alt ="" />
    </div>
    <div id ="denglu">
    <div id="loginfrm" class="round1">
      <p>
      用户名：<asp:TextBox ID="TxtName" runat="server"   CssClass ="textbox" ValidationGroup="a"></asp:TextBox>  
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入用户名" Text ="*" ControlToValidate ="TxtName" ValidationGroup="a" ></asp:RequiredFieldValidator>
      </p>
     <p>
      密　码：<asp:TextBox ID="TxtPassword" runat="server"  CssClass ="textbox"
             ValidationGroup="a" ontextchanged="TxtPassword_TextChanged" 
             TextMode="Password" ></asp:TextBox>
         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码" Text="*"  ControlToValidate ="TxtPassword" ValidationGroup="a"></asp:RequiredFieldValidator>
         <asp:LinkButton ID="Wjmm" runat="server"    PostBackUrl ="~/Forget.aspx">忘记密码</asp:LinkButton>
         
     </p>
     <p id ="but">
         <asp:Button ID="ButLogin" runat="server" Text="登陆" CssClass ="but"  
             ValidationGroup="a" onclick="ButLogin_Click"/>
         <asp:Button ID="ButRegister" runat="server" CssClass ="but" Text="注册" 
             onclick="ButRegister_Click" />
         <asp:ValidationSummary ID="ValidationSummary1" runat="server"  ShowMessageBox ="true" ShowSummary ="false "  ValidationGroup="a"/>
     </p> 
     </div>
     </div> 
    </form>
</body>
</html>
